package com.example.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 用于封装分页及查询条件的类
 */
@Data
public class EmpQueryParam {

    private String name ;
    private Integer age;
    private Integer gender;
    private @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate begin; //添加了日期格式化注解,指定日期格式
    private @DateTimeFormat(pattern = "yyyy-MM-dd")LocalDate end;
    private Integer page =1;
    private Integer pageSize =10;
}
